package com.eastfair.pay.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 认款记录
 * </p>
 *
 * @author clm
 * @since 2022-06-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CollectDTO", description = "认款")
public class CollectDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 付款计划id
     */
    @ApiModelProperty(value = "付款计划id")
    private Long paymentPlanId;
    /**
     * 付款记录id
     */
    @ApiModelProperty(value = "付款记录id")
    private Long paymentRecordId;
    /**
     * 款项类型(数据字典)
     */
    @ApiModelProperty(value = "款项类型(数据字典)")
    @Size(max = 255, message = "款项类型(数据字典)长度不能超过255")
    private String collectType;
    /**
     * 认款金额
     */
    @ApiModelProperty(value = "认款金额")
    private BigDecimal collectAmount;
    /**
     * 业务合同id
     */
    @ApiModelProperty(value = "业务合同id")
    private Long businessId;
    /**
     * 业务合同编号
     */
    @ApiModelProperty(value = "业务合同编号")
    private String businessCode;

}
